<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>微信授权</title>
</head>
<body>
<script>
    var redirect_uri = "http://dev-cc.kuangheng.com/ngsapitask/api/apiWXCode?opsource=wxc";
    var STATE = window.location.search.replace('?', '');

    STATE = encodeURIComponent(STATE);
    redirect_uri = encodeURIComponent(redirect_uri);

    window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa082fd86136022f6&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect';

</script>
</body>
</html>